package HomeWork;

import java.util.Scanner;

public class Staff {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入基本工资");
        double salary = input.nextDouble();
        double subsidyP = salary*0.4;
        System.out.println("你的物价津贴为："+subsidyP);
        double houseP = salary*0.25;
        System.out.println("你的房价补贴为："+houseP);
        double assembly = salary+subsidyP+houseP;
        System.out.println("实发工资:"+assembly);
    }
}
